<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Archives extends MY_Controller {

    public function index()
    {
        $thisData['texts'] = $this->Entries->get_one_by_slug(urldecode($this->uri->segment(2)));
        $this->setHeader('title',$thisData['texts']['titles']);
        $this->setHeader('keywords',$thisData['texts']['titles']);
        $this->setHeader('description',$thisData['texts']['description']);
        $this->navigation();
        
        $thisData['culture'] = $this->culture();
        $thisData['policy'] = $this->policy();
        $thisData['news'] = $this->news();
        $thisData['merchandises'] = $this->merchandises();
        $thisData['answers'] = $this->answers();
        $thisData['placesymbols'] = $this->placesymbols();
        $this->load->view('archives', $thisData);
    }
       
    
    public function monographic()
    {
        $thisData['texts'] = $this->Entries->get_one_by_slug(urldecode($this->uri->segment(2)));
        $this->setHeader('title',$thisData['texts']['titles']);
        $this->setHeader('keywords',$thisData['texts']['titles']);
        $this->setHeader('description',$thisData['texts']['description']);
        $this->navigation();
        
        $thisData['culture'] = $this->culture();
        $thisData['policy'] = $this->policy();
        $thisData['news'] = $this->news();
        $thisData['merchandises'] = $this->merchandises();
        $thisData['answers'] = $this->answers();
        $thisData['placesymbols'] = $this->placesymbols();
        $this->load->view('archives', $thisData);
    }
}

/* End of file home.php */
/* Location: ./application/controllers/home.php */